package modele;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Pronostique implements Serializable  {

	private Match match;
	private Integer scoreEquipe1, scoreEquipe2;
	private int ptObtenus;
	//voir comment géré la journée !
	public Pronostique(Match match, Integer scoreEquipe1, Integer scoreEquipe2, int ptObtenus) {
		super();
		this.match = match;
		this.scoreEquipe1 = scoreEquipe1;
		this.scoreEquipe2 = scoreEquipe2;
		this.ptObtenus = ptObtenus;
	}
	
	public String toString() {
		return match.getEquipe1().getNom() +" "+ scoreEquipe1+ "-"+scoreEquipe2+" "+match.getEquipe2().getNom()+" -> "+ptObtenus+" point(s) obtenu(s)"; 
	}
	public Match getMatch() {
		return match;
	}
	public void setMatch(Match match) {
		this.match = match;
	}
	public Integer getScoreEquipe1() {
		return scoreEquipe1;
	}
	public void setScoreEquipe1(Integer scoreEquipe1) {
		this.scoreEquipe1 = scoreEquipe1;
	}
	public Integer getScoreEquipe2() {
		return scoreEquipe2;
	}
	public void setScoreEquipe2(Integer scoreEquipe2) {
		this.scoreEquipe2 = scoreEquipe2;
	}
	public int getPtObtenus() {
		return ptObtenus;
	}
	public void setPtObtenus(int ptObtenus) {
		this.ptObtenus = ptObtenus;
	}

	public String toStringPasProno() {
		return match.getEquipe1().getNom() +" "+ scoreEquipe1+ "-"+scoreEquipe2+" "+match.getEquipe2().getNom(); 
	}
	
	
}
